const buffer=Buffer.from('runoob','ascii');
const codeTypes=['ascii','utf8','base64','binary','hex'];
for(let codeType of codeTypes){
    console.log(buffer.toString(codeType));
}
